package org.kunteng.yunac.util;


import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2016/11/9.
 */
public class T {
	public static void main(String[] args) {
		System.out.print(Boolean.parseBoolean("1"));
		String url = "http://t.mp.hwwt2.com:8080/upload/h2.html";
		url = url.replace("http://","").replace("https://","");
		System.out.println(url.substring(0,url.indexOf("/")).replace(".","\\.").replace(":","\\:"));

		/*
		List<Integer> newList = new ArrayList<Integer>();
		for (int i = 1; i <= 404557; i++) {
			newList.add(new Integer(i));
		}
		if (newList.size() > 0) {//当更新用户大于0时分批查询需要更新的字段
			int batchCount = 1000;//每批commit的个数
			int batchLastIndex = batchCount - 1;//每批最后一个的下标
			int c = newList.size() > 1 ? newList.size() - 1 : newList.size();
			for (int index = 0; index < c; ) {
				System.out.println("index=" + index + " ---- " + "batchLastIndex=" + batchLastIndex);
				if (batchLastIndex > newList.size() - 1) {
					System.out.println("index1=" + index);
					batchLastIndex = newList.size();
					System.out.println("数据插入完毕,退出循环" + batchLastIndex);
					break;//数据插入完毕,退出循环
				} else {
					System.out.println("index2=" + index);
					index = batchLastIndex;//设置下一批下标
					batchLastIndex = index + (batchCount - 1);
				}
			}
		}
		*/
	}
}